import Vue from 'vue'
import VueRouter from 'vue-router'
import HouseDetail from '@/components/HouseDetail.vue'
import NavBar from '@/components/NavBar.vue'
Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      component: NavBar
    },
    {
      path:'/house/detail',
      component: HouseDetail
    }
  ]
})
export default router